/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kleintjes.behavioral.state_pattern.model;

import com.kleintjes.behavioral.state_pattern.EmotionalState;

/**
 *
 * @author Hughan.Kleintjes.hughanK@gmail.com
 */
public class Person implements EmotionalState{
    
    EmotionalState emotionalState;
    
    public Person(EmotionalState emotionalState) {
        this.emotionalState = emotionalState;
    }
    
    public void setEmotionalState(EmotionalState emotionalState) {
        this.emotionalState = emotionalState;
    }
    
    @Override
    public String sayGoodbye() {
        return emotionalState.sayGoodbye();
    }
    
    @Override
    public String sayHello() {
        return emotionalState.sayHello();
    }
    
}
